package ua.openmedis.web.map;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import org.primefaces.model.map.DefaultMapModel;
import org.primefaces.model.map.LatLng;
import org.primefaces.model.map.MapModel;
import org.primefaces.model.map.Marker;

@SessionScoped
@ManagedBean(name="mapBean")
public class MapBean implements Serializable{
	private MapModel dzhankoyModel;
	
	public MapBean (){
		dzhankoyModel = new DefaultMapModel();
		LatLng dzhankoy = new LatLng(45.708577, 34.39127);
		dzhankoyModel.addOverlay(new Marker(dzhankoy, "Dzhankoy"));
	}

	public MapModel getDzhankoyModel() {
		return dzhankoyModel;
	}
	
	
}
